function sendCode(mobile,status,callback,that) {
    var _sessionId = '';
    if(typeof key != 'undefined'){
        _sessionId = key;
    }
    $.ajax({
        url:baseloaction +'/web/user/ajax/sendMobileMsg',
        type:'post',
        dataType:'json',
        data:{
            'mobile':mobile,
            'status':status,
            'sessionId':_sessionId
        },
        success:function (result) {
            if(result.success==true){
                callback();
            }else {
                relieveSend(that)
                icModale(0,'',result.message);
            }
        },
        error:function (error) {
            relieveSend(that)
            icModale(0,'','系统错误，短信发送失败');
        }
    });
}

/**
 * 禁用发送短信按钮
 * @param that
 */
function disabledSend(that){
    $(that).attr("disabled", true);
    $(that).css("pointer-events","none");
}

/**
 * 恢复短信发送按钮
 * @param that
 */
function  relieveSend(that){
    $(that).removeAttr("disabled");
    $(that).css("pointer-events","");
}